/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atm.service;
import java.util.List;
import javax.ejb.Local;
import org.atm.domain.Account;

/**
 *
 * @author Rahul
 */
@Local
public interface AccountService {
    public void create(Account account);

    public List<Account> getAll();

    //public List<Account> getAllNew();
    public Account getById(int accountId);

    public void activateAccount(Account account);

    public void deactivateAccount(Account account);

    public Account getByAccountNumber(Integer number);

     public void persist(Account account);
}

